home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / modules / cc / panel / scripts / DefineButton2_48 / BUTTONCONDACTION on(press).as next >
Encoding:
Text File  |  2002-03-20  |  874 b   |  40 lines

  1. on(press){
  2.    set("_level40/sound/lib:sound",147);
  3.    call("_level40/sound/lib:play");
  4.    set("../../:trace",eval("../../:trace") add "PRESS RIGHTHAND BTNS");
  5.    tellTarget("_level50")
  6.    {
  7.       gotoAndStop("off");
  8.    }
  9.    tellTarget("numBounce")
  10.    {
  11.       gotoAndStop("over");
  12.    }
  13.    myName = _name;
  14.    if(_name eq "dot")
  15.    {
  16.       myName = ".";
  17.    }
  18.    else if(_name eq "addminus")
  19.    {
  20.       myName = "+/-";
  21.    }
  22.    else
  23.    {
  24.       myName = _name;
  25.    }
  26.    if(myName.substr(1,1) ne "+")
  27.    {
  28.       set("../../:trace",eval("../../:trace") add "PRESS NUM BTN");
  29.       set("../calcCode:digit",myName);
  30.       call("../calcCode:AddDigit");
  31.    }
  32.    else
  33.    {
  34.       set("../../:trace",eval("../../:trace") add "OTHER OP BTN");
  35.       set("../calcCode:otherOperator",myName);
  36.       call("../calcCode:doOther");
  37.    }
  38.    gotoAndPlay(25);
  39. }
  40.